﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;

namespace BLL
{
    class JsonHepler
    {
        public static string GetJsonString(object o)
        {
            return JsonConvert.SerializeObject(o);
        }

        public static object GetObj(string jsonString)
        {
            return JsonConvert.DeserializeObject(jsonString);
        }
    }
}
